/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package Ex7_ex1.CustomerReport;

import Ex7_ex1.Bank;
import Ex7_ex1.CheckingAccount;
import Ex7_ex1.Customer;
import Ex7_ex1.SavingsAccount;

/**
 *
 * @author Root
 */
public class CustomerReport {

    public static void main(String[] args) {
        Bank b = Bank.getBank();
        Customer c1 = new Customer("jane ", "smith");
        c1.setSaving_acc(new SavingsAccount(500, 0));
        c1.setChecking_acc(new CheckingAccount(200));
//        b.addCustomers(c1);

        Customer c2 = new Customer("bryant ", "owen");
//        c2.setSaving_acc(new SavingsAccount(500, 0));
        c2.setChecking_acc(new CheckingAccount(200));
//        b.addCustomers(c2);

        Customer c3 = new Customer("soley ", "tim");
        c3.setSaving_acc(new SavingsAccount(1500, 0));
        c3.setChecking_acc(new CheckingAccount(200));
//        b.addCustomers(c3);

        Customer c4 = new Customer("soley", "maria");
        c4.setSaving_acc(new SavingsAccount(200, 0));
        c4.setChecking_acc(new CheckingAccount(150));
//        b.addCustomers(c4);


        System.out.println("       CUSTOMERS REPORT");
        System.out.println("--------------------------------");
        System.out.println("--------------------------------");
//        System.out.println("customer :"+c1.getFirtname()+" , "+c1.getLastname());
        b.addCustomers(c1);
        System.out.println(c1.getSaving_acc().toString2());
        System.out.println(c1.getChecking_acc().toString2());
        System.out.println("--------------------------------");
        b.addCustomers(c2);
//        System.out.println(c2.getSaving_acc().toString2());
        System.out.println(c2.getChecking_acc().toString2());
        System.out.println("--------------------------------");
        b.addCustomers(c3);
        System.out.println(c3.getSaving_acc().toString2());
        System.out.println(c3.getChecking_acc().toString2());
        System.out.println("--------------------------------");
        b.addCustomers(c4);
        System.out.println(c4.getSaving_acc().toString2());
        System.out.println(c4.getChecking_acc().toString2());
    }
}
